<?php /* Smarty version 2.6.26, created on 2013-10-10 21:26:58
         compiled from ./admin/goods_type_info.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/admin/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main-div">
  <form action="goods_type.php<?php if ($this->_tpl_vars['action'] != ''): ?>?act=<?php echo $this->_tpl_vars['action']; ?>
<?php endif; ?>" method="post" name="theForm">
    <table cellspacing="1" cellpadding="3" width="100%">
    <?php if ($this->_tpl_vars['judge'] == 'add'): ?>
      <tr>
        <td class="label">商品类型名称:</td>
        <td><input type="text" name="cat_name" size="40" />
        </td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="submit" value="确定" class="button" />
          <input type="reset" value="重置" class="button" />
        </td>
      </tr>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['judge'] == 'edit'): ?>
      <tr>
        <td class="label">商品类型名称:</td>
        <td><input type="text" name="cat_name" size="40" value="<?php echo $this->_tpl_vars['row']['cat_name']; ?>
"/>
        </td>
      </tr>
      <tr>
        <td class="label">是否显示:</td>
        <td>
          <input type="radio" name="is_show" value="1" <?php if ($this->_tpl_vars['row']['enabled'] == 1): ?> checked="true"<?php endif; ?>/>是
          <input type="radio" name="is_show" value="0" <?php if ($this->_tpl_vars['row']['enabled'] == 0): ?> checked="true"<?php endif; ?> />否
        </td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="submit" value="确定" class="button" />
          <input type="reset" value="重置" class="button" />
        </td>
      </tr>
   	  <input type="hidden" name="cat_id" value="<?php echo $this->_tpl_vars['row']['cat_id']; ?>
" />
    <?php endif; ?>
    </table>
  </form>
</div>
